<div class="row">
		<p> <script type="text/javascript" src="<?php echo BASE_URL; ?>/js/form.js"></script> </p>

		<div class="span6">
			
			<form class="form-horizontal well" action="<?php echo Router::url('users/connexion'); ?>" method="post">
				<fieldset>
					<legend>Se connecter</legend>

					<!--login-->
					<div class="control-group">
						<label class="control-label" for="email">Email</label>
						<div class="controls">
							<div class="input-prepend">
								<span class="add-on"><i class="icon-envelope"></i></span>
								<input class="input-large focused" type="email" name="email" required>
							</div>
						</div>
					</div>

					<!--mot de passe-->
					<div class="control-group">
						<label class="control-label" for="pwd">Mot de passe</label>
						<div class="controls">
							<div class="input-prepend">
								<span class="add-on"><i class="icon-wrench"></i></span>
								<input class="input-large focused" type="password" name="pwd" required>
							</div>
						</div>
					</div>

					<!--mot de passe oublié-->
					<div class="controls">
						<a href="<?php echo Router::url('users/motdepasseoublie'); ?>">Mot de passe oublié</a>
					</div>

					<div class="">
						<p class="erreur">
							<span id="erreurCo">
								<?php
								 	if(isset($_SESSION['temp']))
								 		if(!empty($_SESSION['temp']))
								 			echo $_SESSION['temp']; 

								 	$_SESSION['temp'] = '';//Remise à zero de la variable
								?>
							</span>
						</p>
					</div>

					<div class="form-actions">
						<input type="submit" class="btn btn-inverse" value="Se connecter">
						<input type="reset" onClick="resetFormCo()" class="btn" value="Annuler">
					</div>
				</fieldset>
			</form>
			
		</div>	


		<div class="span6">
			
			<form id="formInsc" class="form-horizontal well" onsubmit="return verifForm()" action="<?php echo Router::url('users/inscription'); ?>" method="post">
				
				<fieldset>
					<legend>S'inscrire</legend>
					<div class="control-group">
						<label class="control-label" for="login">Login*</label>
						<div class="controls">
							<div class="input-prepend input-append">
								<span class="add-on"><i class="icon-user"></i></span>
								<input class="input-large focused" type="text" placeholder="pseudo" name="login" id="ilogin" onChange="loginUp(this)" onKeyup="loginUp(this)">
								<span class="add-on"><i id="iconLogin"></i></span>
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="email">Email*</label>
						<div class="controls">
							<div class="input-prepend input-append">
								<span class="add-on"><i class="icon-envelope"></i></span>
								<input class="input-large focused" type="text" placeholder="moi@adresse.com" name="email" id="iemail" onChange="emailUp(this)" onkeyup="emailUp(this)">
								<span class="add-on"><i id="iconEmail"></i></span>
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="password1">Mot de passe*</label> 
						<div class="controls">
							<div class="input-prepend input-append">
								<span class="add-on"><i class="icon-wrench"></i></span>
								<input class="input-large focused" type="password" name="password1" id="ipwd1" onChange="pwd1Up(this)" onkeyup="pwd1Up(this)">
								<span class="add-on"><i id="iconPwd1"></i></span>
							</div>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label" for="password2">Vérification du <br/>mot de passe*</label>
						<div class="controls">
							<div class="input-prepend input-append">
								<span class="add-on"><i class="icon-wrench"></i></span>
								<input class="input-large focused" type="password" name="password2" id="ipwd2" onChange="pwd2Up(this)" onkeyup="pwd2Up(this)">
								<span class="add-on"><i id="iconPwd2"></i></span>
							</div>
						</div>
					</div>

					<div class="">
						<p class="erreur">
							<span id="erreur">
								<?php
									if(isset($_SESSION['tempInsc']))
									 		if(!empty($_SESSION['tempInsc']))
									 			echo $_SESSION['tempInsc']; 

									 	$_SESSION['tempInsc'] = '';//Remise à zero de la variable 
								 ?>
							</span>
						</p>
					</div>

					<div class="form-actions">
						<input type="submit" id="submitInsc" class="btn btn-inverse" value="S'inscrire">
						<input type="reset" onClick="resetForm()" class="btn" value="Annuler">
					</div>
					
				</fieldset>
			
			</form> 
		</div>
		

</div>